<div data-page="<{$pageName}>" class="page my_subject" >
	<div class="page-content">
		<include file="Public:subject_header" />
		<div class="container text mgb80">
			<div class="row">
			<div class="col-md-12"><include file="Public:subject_nav" /> </div>
				<div class="col-md-8">
							 <{:Widget('BoxEdu/Index/subject_list',array('subjectid'=>$subjectid,'url'=>'Subject/note'))}> 
				</div>
				<div class="col-md-4 hidden-xs hidden-sm  ">
					<{:ADGroup('Subject_note')}>
				</div>
			</div>
		</div>
	</div><br />
<br />
<script>
function write_notes(){
	$("#detail_notes").find("pre").hide();
	var html=$("#detail_notes").find("pre").html();
	$("#detail_notes").find("textarea").val(html);
	$("#detail_notes").find("textarea").show();
	$("#detail_notes").find("textarea").focus();
	$("#save_notes_bnt").show();
	$("#write_notes_bnt").hide();
}
function save_notes(){
	var html=$("#detail_notes").find("textarea").val();
	$("#detail_notes").find("pre").html(html);
	$("#detail_notes").find("textarea").hide();
	$("#detail_notes").find("pre").show();
	$("#save_notes_bnt").hide();
	$("#write_notes_bnt").show();
	$.post("<{:U('save_note')}>",{knowsid:"<{:I('knowsid')}>",notes:html});
	
}
</script>
</div>

